package com.microsoft.socialphoto.ui;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

import com.microsoft.socialphoto.R;
import com.microsoft.socialphoto.SocialTabActivity;

public class Home extends SocialTabActivity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_home);

		TabHost tabHost = (TabHost) findViewById(android.R.id.tabhost);

		TabSpec firstTabSpec = tabHost.newTabSpec("home");
		TabSpec secondTabSpec = tabHost.newTabSpec("setting");

		firstTabSpec.setIndicator(
				createTabView(this, getString(R.string.top_rated))).setContent(
				new Intent(this, TopRated.class));
		secondTabSpec.setIndicator(
				createTabView(this, getString(R.string.my_photo))).setContent(
				new Intent(this, MyPhoto.class));

		tabHost.addTab(firstTabSpec);
		tabHost.addTab(secondTabSpec);
	}
}